let Storage = {};

// 设值
Storage.set = (key, value) => {
    if (!localStorage) {
        return false;
    }
    if (typeof key != 'undefined' && key != '' && key != null) {
        localStorage.setItem(key, value)
    }
};

// 取值
Storage.get = key => {
    if (!localStorage) {
        return null;
    }
    return localStorage.getItem(key);
};
export default Storage;